/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.Date;

/**
 *
 * @author CUNEYT
 */
public class Task extends ScheduleEntry {

    private Campaign relatedTo;
    private Skill skill;
    private java.util.Date endDate;

    public Task() {
        super();
    }

    public Task(String title, java.util.Date tDate, java.util.Date eDate, String sTime, String eTime, String exp) {
        super(title, tDate, sTime, eTime, exp);
        endDate = eDate;
    }

    public Task(String title, java.util.Date tDate, java.util.Date eDate, String sTime, String eTime, String exp, Skill s, Campaign c) {
        super(title, tDate, sTime, eTime, exp);
        skill = s;
        relatedTo = c;
        endDate = eDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Campaign getRelatedTo() {
        return relatedTo;
    }

    public void setRelatedTo(Campaign relatedTo) {
        this.relatedTo = relatedTo;
    }

    public Skill getSkill() {
        return skill;
    }

    public void setSkill(Skill skill) {
        this.skill = skill;
    }

}
